<?php
	require(__DOCROOT__.'include/class/Smarty/libs/Smarty.class.php');
	$smarty = new Smarty();
	$smarty->template_dir    = $GLOBALS['cfg']['smarty']['template_dir'];
	$smarty->compile_dir     = $GLOBALS['cfg']['smarty']['compile_dir'];
	$smarty->config_dir      = $GLOBALS['cfg']['smarty']['config_dir'];
	$smarty->cache_dir       = $GLOBALS['cfg']['smarty']['cache_dir'];
	$smarty->left_delimiter  = $GLOBALS['cfg']['smarty']['left_delimiter'];
	$smarty->right_delimiter = $GLOBALS['cfg']['smarty']['right_delimiter'];

	$smarty->assign('_CONFIG', $GLOBALS['cfg']);
?>
